<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page import="model.*, util.*"%>
<%
	ChecklistModel obj;
	Object temp = request.getAttribute("checklist");
	if (temp != null) {
		try {
			obj = (ChecklistModel) temp;
		} catch (Exception ex) {
			obj = new ChecklistModel();
		}
	} else {
		obj = new ChecklistModel();
	}
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Update checklist</title>

<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/jquery-ui-1.8.14.custom.css" type="text/css" />
<link rel="stylesheet" href="css/jquery-ui-timepicker.css" type="text/css" />
<link rel="stylesheet" href="css/hyjack.css" type="text/css" />
<link rel="stylesheet" href="css/datepicker.css" />

<script language="javascript" type="text/javascript" src="js/datepicker.js"></script>
<script language="javascript" type="text/javascript" src="js/common.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery-1.6.1.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.hyjack.select.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.ui.core.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.ui.widget.min.js"></script>

<script language="javascript" type="text/javascript" src="js/jquery.ui.timepicker.js"></script>
<script language="javascript" type="text/javascript" src="js/datepicker.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.hyjack.js"></script>
<script language="javascript" type="text/javascript" src="js/ajaxQuickInsert.js"></script>

<link rel="stylesheet" href="css/inputForm.css" />

</head>
<body>
     <jsp:include page="menu.jsp"></jsp:include>
    <br />    
	<table class="tblInput" border="1">
		<tr class="inputHeader">
			<th colspan="3" class="inputHeader">Checklist Information</th>
		</tr>
			<tr class="trField">
				<td class="tdFieldName">Id</td>				<td class="tdFieldInput">
					<input class="lblInt" type="text" id="id" name="id" readonly="readonly" value="<%=obj.getIdToString()%>" />
				</td>
				<td class="tdErrMsg">					
                </td>			<tr class="trField">
				<td class="tdFieldName">Object Type</td>			    <td class="tdFieldValue">
                    <span class="lblText"><%=obj.getObjectTypeToString()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Object Id</td>			    <td class="tdFieldValue">
                    <span class="lblText"><%=obj.getObjectIdToString()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Title</td>			    <td class="tdFieldValue">
                    <span class="lblText"><%=obj.getTitleToString()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Code</td>			    <td class="tdFieldValue">
                    <span class="lblText"><%=obj.getCodeToString()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Description</td>				    <td class="tdFieldInput">

					<textarea id="description" name="description" rows="5" class="lblTextarea" readonly="readonly"><%=obj.getDescriptionToString()%></textarea>
				</td></tr>
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Type</td>				<td class="tdFieldValue"> -->
<%--                     <span class="lblInt"><%=obj.getTypeToString()%></span> --%>
<!-- 				</td></tr> -->
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Status</td>				<td class="tdFieldValue"> -->
<%--                     <span class="lblInt"><%=obj.getStatusToString()%></span> --%>
<!-- 				</td></tr> -->
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Is Draft</td><td class="tdFieldValue"> -->
<!-- 					<table class="tblBool"> -->
<!-- 						<tr class="trBoolSet"> -->
<!-- 							<td colspan="2" class="tdBoolSet"><input type="checkbox" -->
<!-- 								id="ckb_is_draft" name="ckb_is_draft" -->
<!-- 								onchange="toggleControls(['is_draft_true', 'is_draft_false'])" />Not -->
<!-- 								set</td> -->
<!-- 						</tr> -->
<!-- 						<tr class="trBool"> -->
<!-- 							<td class="tdBool"><input type="radio" -->
<!-- 								id="is_draft_true" name="is_draft" value="1" -->
<!-- 								checked="checked" />Yes</td> -->
<!-- 							<td class="tdBool"><input type="radio" -->
<!-- 								id="is_draft_false" name="is_draft" value="0" />No</td> -->
<!-- 						</tr> -->
<!-- 					</table></td> -->
<!-- 				<td class="tdErrMsg"></td></tr> -->
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Notification</td>				<td class="tdFieldValue"> -->
<%--                     <span class="lblInt"><%=obj.getNotificationToString()%></span> --%>
<!-- 				</td></tr> -->
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Created</td>				<td class="tdFieldValue"> -->
<%--                      <span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getCreated())%></span>    --%>
<!-- 					</td></tr> -->
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Creator</td>				<td class="tdFieldValue"> -->
<%--                     <span class="lblInt"><%=obj.getCreatorToString()%></span> --%>
<!-- 				</td></tr> -->
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Updated</td>				<td class="tdFieldValue"> -->
<%--                      <span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getUpdated())%></span>    --%>
<!-- 					</td></tr> -->
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Updator</td>				<td class="tdFieldValue"> -->
<%--                     <span class="lblInt"><%=obj.getUpdatorToString()%></span> --%>
<!-- 				</td></tr> -->
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Deleted</td><td class="tdFieldValue"> -->
<!-- 					<table class="tblBool"> -->
<!-- 						<tr class="trBoolSet"> -->
<!-- 							<td colspan="2" class="tdBoolSet"><input type="checkbox" -->
<!-- 								id="ckb_deleted" name="ckb_deleted" -->
<!-- 								onchange="toggleControls(['deleted_true', 'deleted_false'])" />Not -->
<!-- 								set</td> -->
<!-- 						</tr> -->
<!-- 						<tr class="trBool"> -->
<!-- 							<td class="tdBool"><input type="radio" -->
<!-- 								id="deleted_true" name="deleted" value="1" -->
<!-- 								checked="checked" />Yes</td> -->
<!-- 							<td class="tdBool"><input type="radio" -->
<!-- 								id="deleted_false" name="deleted" value="0" />No</td> -->
<!-- 						</tr> -->
<!-- 					</table></td> -->
<!-- 				<td class="tdErrMsg"></td></tr> -->
<!-- 			<tr class="trField"> -->
<!-- 				<td class="tdFieldName">Deletion Time</td>				<td class="tdFieldValue"> -->
<%--                      <span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getDeletionTime())%></span>    --%>
<!-- 					</td></tr> -->
			<tr class="trField">
				<td class="tdFieldName">Id Project</td>				<td class="tdFieldValue">
                    <span class="lblInt"><%=obj.getIdProjectToString()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Id Author</td>				<td class="tdFieldValue">
                    <span class="lblInt"><%=obj.getIdAuthorToString()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Id Approver</td>				<td class="tdFieldValue">
                    <span class="lblInt"><%=obj.getIdApproverToString()%></span>
				</td></tr>
			
<!--
		<tr class="trInputBottom">
			<td class="trInputBottom" colspan="3">
				<table class="tblSubmit" align="center">
					<tr class="trSubmit">
						<td class="tdSubmit">
							<input type="submit" value="Edit" />
						</td>
					</tr>
				</table></td>
		</tr>
-->
	</table>
    <br />
	<jsp:include page="checklistList.jsp?embedded=true"></jsp:include>
</body>
</html>